Programming Research Group a Concrete Z Grammar a Concrete Z Grammar

نویسندگان

  • Peter T. Breuer
  • Jonathan P. Bowen
چکیده

This report presents a concrete grammar for the formal software speciication language Z, based on the BNF-like syntax description in the widely used Z Reference Manual. It has been used as a starting point for several projects associated with Z. The grammar is written in the format required for the public domain compiler-compiler PRECC. It has also been used as a basis for grammars aimed at other compiler-compilers, including yacc and PCCTS. An important goal in publishing it here is to make a working concrete grammar for Z publicly available and thus to promote the production of Z-based utilities. Another intention of this report is to report on the use of what is itself a high-level formal speciication language with a formally deened parser semantics: PRECC. It is used here to deene a human-readable language, namely Z, that has an ambiguous and context-sensitive syntax, and we also report on engineering aspects of the work.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Concrete Z Grammar

This paper presents a concrete grammar for Z, based on the BNF-like syntax description in the Z Reference Manual. The grammar will immediately generate ANSI C code for a parser using the public domain compiler-compiler PRECC, and has already also been used as the basis for grammar scripts for utilities such as yacc and PCCTS. The intention in publishing it here is to make a working concrete gra...

متن کامل

An implementation of a Latvian resource grammar in Grammatical Framework

This paper describes an open-source Latvian resource grammar implemented in Grammatical Framework (GF), a programming language for multilingual grammar applications. GF differentiates between concrete grammars and abstract grammars: translation among concrete languages is provided via abstract syntax trees. Thus the same concrete grammar is effectively used for both language analysis and langua...

متن کامل

Concise Concrete Syntax

We introduce a notion of ordered context-free grammars (OCFGs) with datatype tags to concisely specify grammars of programming languages. Our work is an extension of syntax definition formalism (SDF) and concrete datatypes that automate scanning, parsing, and syntax tree construction. But OCFGs also capture associativity and precedence at the level of production rules instead of lexical tokens ...

متن کامل

A Front - End Tool to Parse Z Speci cationsJonathan

Z is one of the most widely used formal speciication languages. However, traditionally it has lacked adequate tool support for use in an industrial setting. It has grown up from a mathematically based tradition of the use of formal methods, rather than being based on any particular tool. This paper presents a tool and, in particular, its associated machine-readable syntax description of Z that ...

متن کامل

The GF Grammar Compiler

GF (Grammatical Framework) is a grammar formalism based on the distinction between abstract and concrete syntax. An abstract syntax is a free algebra of trees, and a concrete syntax is a mapping from trees to nested records of strings and features. These mappings are naturally defined as functions in a functional programming language; the GF language provides the customary functional programmin...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995